"""测试的主入口"""

import os
import unittest
import app,time
from scripts.test_login import login
from lib.HTMLTestRunner import HTMLTestRunner

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(login))

report_file =app.BASE_DIR +"/report/report{}.html".format(time.strftime("%Y_%m_%d %H_%M_%S"))

with open(report_file,"wb") as f:
    runner = HTMLTestRunner(f,title="p2p金融项目接口测试报告",description="test")
    runner.run(suite)
